<template>
  <!--   管理员首页顶部统计/活动发布   -->
  <div class="header-box">
    <div class="general bg-color">
      <span class="total_1">申报总人数</span>
      <span class="total_2">123123123123</span>
    </div>
    <div class="general declare bg-color">
      <span class="total_1">过去一周申报人数</span>
      <span class="total_2">123123</span>
    </div>
    <div class="general declare bg-color">
      <span class="total_1">过去一周通过人数</span>
      <span class="total_2">123123</span>
    </div>
    <div class="general declare bg-color">
      <span class="total_1">过去一周注册人数</span>
      <span class="total_2">123123</span>
    </div>
    <div class="general declare bg-color">
      <span class="total_1">过去一周访问人数</span>
      <span class="total_2">123123</span>
    </div>
    <!--    -->
    <div class="general active">
      <div class="bg-color">
        <button @click="alt">发布通知公告</button>
      </div>
      <div class="act">
        <div class="act-width bg-color">
          <button @click="alt">发布活动</button>
        </div>
        <div class="act-width bg-color">
          <button @click="alt">上传文件</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "MasterHead",
    methods: {
      alt() {
        alert("1111111")
        this.$router.replace('/active')
      }
    },
  }
</script>

<style scoped>
  * {
    margin: 0 auto;
    padding: 0;
    width: 100%;
  }

  .header-box {
    width: 100%;
    height: 100px;
    display: flex;

  }

  .general {
    height: 100%;
    display: inline-block;
  }

  .general:first-child {
    flex: 4;
    margin-right: 10px;
  }

  .declare {
    flex: 3.5;
    margin-right: 10px;
  }

  .general:last-child {
    flex: 5;
  }

  /* 内部内容 */
  span {
    display: block;
  }

  .total_1 {
    line-height: 20px;
    padding-top: 25px;
    font-size: 16px;
  }

  .total_2 {
    padding-top: 5px;
    line-height: 25px;
    font-size: 18px;
  }
  .bg-color{
    background: rgba(37, 80, 174, 0.55);
  }
  .active{
    height: 100px;
  }
  .active button {
    background-color: transparent;
    outline: none;
    border: none;
    font-size: 18px;
    color: #ffffff;
    width: 100%;
    justify-content: center;
  }
  .active>div{
    height: 40px;
    line-height: 40px;
  }
  .act {
    margin-top: 10px;
    display: flex;
    height: 50px;
    width: 100%;
  }

  .act-width {
    flex: 1;
    /*display: inline-block;*/
    height: 50px;
    line-height: 50px;
  }
  .act-width:first-child{
    margin-right: 10px;
  }

  .act-width > button {
    width: 120px;
  }

  /*  */


</style>
